package cn.com.chengmandian.bike.service;

import cn.com.chengmandian.bike.dto.MemberComboRecordDto;
import cn.com.chengmandian.bike.model.EbMemberComboRecord;
import cn.com.chengmandian.bike.model.EbRefundInfo;
import cn.com.chengmandian.bike.model.vo.MemberComboRecordVo;
import cn.com.chengmandian.service.bike.form.MemberComboRefundForm;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 电单车运营系统-会员购买记录 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2023-08-28
 */
public interface IEbMemberComboRecordService extends IService<EbMemberComboRecord> {

    IPage<EbMemberComboRecord> pages(MemberComboRecordDto dto, Integer memberId);

    MemberComboRecordVo getMemberAvailableRecord(Integer areaId, Integer memberId);

    EbMemberComboRecord createRecord(Integer payId, Integer memberId, Integer comboId, BigDecimal money);

    void refund(MemberComboRefundForm form);

    void refundSuccess(EbRefundInfo ebRefundInfo, String payNo);
}
